import { request} from "../request/index";

export const getCollectInfo = (userid) =>{
  return request({
    url: "/collect/"+userid+"/",
    method:"get",
});
}

export const deleteCollectOne = (userid,set) =>{
  return request({
    url: "/collect/"+userid+"/",
    method:"delete",
    data:{
        collect_id:set
    }
});
}

export const createCollectOne = (userid,goods_id) =>{
  return request({
    url: "/collect/",
    method:"POST",
   data:{
    userid:userid,
    goods_id:goods_id
   }
});
}